#include <stdio.h>
#include <string.h>
#include <Windows.h>

char str[1000000] = {0};

int main()
{
	DWORD start = GetTickCount();
	freopen("test.in", "r", stdin);
	freopen("test.out", "w", stdout);
	gets(str);
	int len = strlen(str);
	printf("len = %d\n", len);
	for ( int i = 0; i < len/2; i++ ) {
		char tmp = str[i];
		str[i] = str[len - i -1];
		str[len - i -1] = tmp;
	}
	puts(str);
	DWORD time = GetTickCount() - start;
	printf("\ntime = %.2f\n", (1000.0 * time) / 905 );
	fclose(stdin);
	fclose(stdout);
	return 0;
}
